UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

Stack tracing must be disabled.


Overview

Finding ID Version Rule ID IA Controls Severity
V-222950 TCAT-AS-000470 SV-222950r615938_rule Medium
Description
Stack tracing provides debugging information from the application call stacks when a runtime error is encountered. If stack tracing is left enabled, Tomcat will provide this call stack information to the requestor which could result in the loss of sensitive information or data that could be used to compromise the system. As with all STIG settings, it is acceptable to temporarily enable for troubleshooting and debugging purposes but the setting must not be left enabled after troubleshooting tasks have been completed.
STIG Date
Apache Tomcat Application Sever 9 Security Technical Implementation Guide 2021-12-27

Details

Check Text ( C-24622r426294_chk )
From the Tomcat server run the following OS command:

sudo cat $CATALINA_BASE/conf/server.xml | grep -i connector

Review each connector element, ensure each connector does not have an "allowTrace" setting or ensure the "allowTrace" setting is set to false.



Do the same for each application by checking every $CATALINA_BASE/webapps//WEBINF/web.xml file on the system.

sudo cat $CATALINA_BASE/webapps//WEBINF/web.xml |grep -i connector

If a connector element in the server.xml file or in any of the /WEBINF/web.xml files contains the "allow Trace = true" statement, this is a finding.
Fix Text (F-24611r426295_fix)
From the Tomcat server as a privileged user, edit the xml files containing the "allow Trace=true" statement.

Remove the "allow Trace=true" statement from the affected xml configuration files and restart the Tomcat server:
sudo systemctl restart tomcat
sudo systemctl daemon-reload